#pragma once
#include "CGGUI.h"
class CGGUIStaticText :
	public CGGUIComponent
{
protected:
	std::string m_strText;
public:
	CGGUIStaticText(void);
	~CGGUIStaticText(void);
public:
	void SetText(std::string text){m_strText=text;}
	void SetText(char* chText){m_strText=chText;}
	void SetText(TCHAR* tchText){m_strText=tchText;}
	const string & GetText()const{ return m_strText;}
	void ClearText(){string.clear();}
public:
	virtual void PreRender();
	virtual void Render();
	virtual void EndRender();
public:
	virtual void OnMouseMoveIn(const CGMouseArgs &SMouseArgs);
	virtual void OnMouseMoveHover(const CGMouseArgs &SMouseArgs);
	virtual void OnMouseButtonDown(const CGMouseArgs &SMouseArgs);
	virtual void OnMouseButtonUp(const CGMouseArgs &SMouseArgs);
	virtual void OnMouseClick(const CGMouseArgs &SMouseArgs);
	virtual void OnMouseDoubleClick(const CGMouseArgs &SMouseArgs);
};
